package com.blog.mapper;

import com.blog.model.Logger;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 日志持久层
 *
 * @author wmb
 *
 * @since 2021-2-8
 */
@Mapper
@Repository("logMapper")
public interface LogMapper {

    /**
     * 添加日志
     *
     * @param logger
     *
     * @return
     */
    int saveLog(Logger logger);

    /**
     * 获取日志
     *
     * @return
     */
    List<Logger> getLogs();
}
